package com.platform.security.model;

import com.platform.domain.model.User;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;

/**
 * Created with IntelliJ IDEA.
 * User: wangyanginfo
 * Date: 12-9-6
 * Time: 下午4:52
 * To change this template use File | Settings | File Templates.
 */
public class UserInfo extends org.springframework.security.core.userdetails.User {

    private User user; // 用户信息

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public UserInfo(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
    }

}
